import React from 'react'
import { Route } from 'react-router-dom'

import MyTabBar from '../components/MyTabBar'
import Find from './find'
import Home from './home'
import News from './news'
import User from './user'

export default class Frame extends React.Component {
  render () {
    return (<div className="zf-frame">
      <Route path="/frame/home" component={Home}></Route>
      <Route path="/frame/find" component={Find}></Route>
      <Route path="/frame/news" component={News}></Route>
      <Route path="/frame/user" component={User}></Route>
      <MyTabBar></MyTabBar>
    </div>
    )
  }
}